package com.ctshk.rpc.custom.service;


import com.ctshk.common.vo.MainDataCount;
import com.ctshk.rpc.custom.dto.trip.TripScheduleTouristCountDTO;
import com.ctshk.rpc.custom.req.trip.TripScheduleTouristCountReq;

import java.util.List;

/**
 * <p>
 * 团期旅客类型统计 服务类
 * </p>
 *
 * @author 叶冠峰
 * @since 2021-03-12
 */
public interface ICustomizedTripScheduleTouristCountService{

    /**
     * 根据团期id获取旅客统计
     * @param scheduleId
     * @return
     */
    List<TripScheduleTouristCountDTO> queryBySchedule(Long scheduleId);

    /**
     * 更新统计
     * @param countReqList
     * @return
     */
    boolean batchUpdate(List<TripScheduleTouristCountReq> countReqList);

    /**
     * 团期旅客类型统计回滚
     * @param list
     * @param scheduleId
     * @param userId
     * @return
     */
    boolean rollBackCount(List<MainDataCount> list, Long scheduleId, Long userId);
}
